﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.Sim.Admin.AdminSpecificPermissionRecord
{
	/// <summary>
	/// 管理员特殊权限记录
	/// </summary>
	public class AdminSpecificPermissionRecordRequestDto
	{
		/// <summary>
		/// 特殊权限名称
		/// </summary>		
		[Display(Name = "特殊权限名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string SpecificPermissionName { get; set; }
		/// <summary>
		/// 特殊权限Key
		/// </summary>		
		[Display(Name = "特殊权限Key")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string SpecificPermissionKey { get; set; }
		/// <summary>
		/// 管理员Id
		/// </summary>		
		[Display(Name = "管理员Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long AdminId { get; set; }
		/// <summary>
		/// 员工组织映射记录Id
		/// </summary>
		[Display(Name = "员工组织映射记录Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long? StaffOrganizationMappingRecordId { get; set; }
	}
}
